package com.link.base.base.orgnization.dao.mybatis.mapper;

import com.link.base.base.orgnization.model.Partner;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

public interface PartnerMapper extends BasicMapper<Partner> {

    /**
     * 根据组织类型查询合作方信息
     *
     * @author anxiaobo
     * @date 2019/4/26 15:28
     * @param type 组织类型
     */
    public List<Partner> queryPartnerByType(String type) throws Exception;

    /**
     * 获取默认合作方组织
     *
     * @author anxiaobo
     * @date 2019/5/6 20:08
     * @param
     */
    public List<Partner> queryDefaultPartner() throws Exception;

    /**
     * 设置默认合作方
     * @param partner
     * @throws Exception
     */
    public void defaultPartnerUpdate(Partner partner) throws Exception;

}
